package org.budo.cmbc.sdk.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author lmw
 */
@Getter
@Setter
@Accessors(chain = true)
public class XferRequest extends AbstractCmbcRequest {
    private static final long serialVersionUID = 6807672283140208605L;

    private String trnId;

    private String acntNo;

    private String insId;

    private String acntToNo;

    private String acntToName;

    private String externBank;

    private String localFlag;

    private String rcvCustType;

    private String bankName;

    private String amount;

    private String bankCode;

    public XferRequest() {
        super();
    }

    public XferRequest setExternBank(String externBank) {
        this.externBank = externBank;
        return this;
    }

    public XferRequest setExternBank(boolean externBank) {
        this.externBank = externBank ? "1" : "0";
        return this;
    }
}